SRCS := $(wildcard *.c)
OUTS := $(patsubst %.c,%.o,$(SRCS))
CC := gcc
COM_OP := -Wall -g 
EXE:=client
.PHONY: clean rebuild all


all: $(OUTS)                      
	$(CC) -o $(EXE) $^  $(COM_OP)
%.o : %.c
	$(CC) $^ -o $@ $(COM_OP)
	
clean:
	$(RM) $(OUTS)

echo:
	@echo $(OUTS)
	
rebuild: clean all
